package com.kelp.codetoolkit.ui.form

import com.intellij.openapi.project.Project
import com.intellij.openapi.ui.DialogWrapper
import javax.swing.JComponent
import javax.swing.JPanel
import javax.swing.JTextArea


/**
 * @author: liuyuebai
 * @date: 2024/10/11 14:55
 * @description:
 */
class GeneratorDDLDialog(val ddl:String,project:Project): DialogWrapper(project) {


    init {
        title = "Field Generate DDL"
        init()
    }

    override fun createCenterPanel(): JComponent {
        val panel = JPanel()
        val textArea = JTextArea(ddl)
        panel.add(textArea)
        return panel
    }
}